import http from '@/utils/request';

// 获取列表
export interface IDemoGetListData {
  skip: number;
  limit: number;
}

export const demoGetList = ({ skip, limit }: IDemoGetListData) => {
  return http.request({
    url: '/api/test',
    method: 'GET',
    params: {
      skip,
      limit,
    },
  });
};

// 获取详情
export interface IDemoGetDetailData {
  demoId: number;
}

// 创建
export interface IDemoCreateData {
  foo: string;
  bar: string;
}
